How to get hierarchy information?

Hi all,

i want to know the parents of folders and projects.

As an example -  I have a project "A" -> in this project is an folder "FA" -> in this folder is an project "B" and "C"  and so on...

I try so get the informations with "getParentFolder" and "getParentProject" but after the folder "FA" i dont get the "fullpath" that i need.

I need something like that "A/FA/B..." and "A/FA/C..."

With "path()" i only get "/C" or "/B"

 

Hope you understood me,

here is my code

 

Project p = current 
Item it 

for it in p do 
{
        if(type(it) == "Folder" || type(it) == "Project" ) 
        {
                string s = path(it) 
                print s "\n" 
        }     
}

 

Thanks


meinhana - Fri Jul 29 07:04:27 EDT 2016

Re: How to get hierarchy information?
Wolfgang Uhr - Fri Jul 29 08:48:56 EDT 2016

Try rootPath() ...

Re: How to get hierarchy information?
meinhana - Fri Jul 29 08:53:26 EDT 2016

Wolfgang Uhr - Fri Jul 29 08:48:56 EDT 2016

Try rootPath() ...

There is no function like rootPath() ...

 

Re: How to get hierarchy information?
meinhana - Fri Jul 29 08:55:20 EDT 2016

Thank you!

It is not "rootPath" it is "rootName_()"

Re: How to get hierarchy information?
Wolfgang Uhr - Fri Jul 29 09:05:11 EDT 2016

meinhana - Fri Jul 29 08:55:20 EDT 2016

Thank you!

It is not "rootPath" it is "rootName_()"

Sorry, you are right ...